package com.wavehi.request_mapping.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author WaveHi
 * @Date 4/11/2021 下午 2:20
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
@RestController
public class UserController {

    @RequestMapping(value = "/user", method = RequestMethod.DELETE)
    public String deleteUser() {
        return "Delete user";
    }
    @RequestMapping(value = "/user", method = RequestMethod.POST)
    public String postUser() {
        return "Post user";
    }

    @RequestMapping(value = "/user", method = RequestMethod.PUT)
    public String putUser() {
        return "Put user";
    }
    @RequestMapping(value = "/user", method = RequestMethod.GET)
    public String getUser() {
        return "Get user";
    }

    @RequestMapping("/login")
    public Boolean login() {
        return false;
    }
}
